﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="WellDone.AddUnitDialog"
           Width="391" Height="138" 
           Title="Add Unit">
    <Grid Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <sdk:Label HorizontalAlignment="Left" Content="Full Name" Height="19" Margin="0,1,0,0" VerticalAlignment="Top" Width="72" HorizontalContentAlignment="Right"/>
        <TextBox HorizontalAlignment="Left" Margin="0,21,0,0" Name="tbUnitFullName" VerticalAlignment="Top" Width="289" MaxLength="50" KeyDown="tbUnitFullName_KeyDown" />
        <sdk:Label HorizontalAlignment="Right" Content="Short Name" Height="19" Margin="0,1,8,0" VerticalAlignment="Top" Width="72"/>
        <TextBox HorizontalAlignment="Left" Margin="294,21,0,0" x:Name="tbUnitShortName" VerticalAlignment="Top" Width="65" MaxLength="10" KeyDown="tbUnitFullName_KeyDown" />
        <Button x:Name="btnOK" Content="OK" Click="btnOK_Click" Width="75" HorizontalAlignment="Right" Margin="0,10,79,0" Grid.Row="1" />
        <Button x:Name="btnCancel" Content="Cancel" Click="btnCancel_Click" Width="75" HorizontalAlignment="Right" Margin="0,10,0,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>